Visual Basic (Declaration) | |
---|---|
Public Overloads Sub SearchAsync( _ ByVal inputGeometry As Geometry, _ ByVal resultCallback As Action(Of IList(Of S57FeatureObject)) _ ) |
C# | |
---|---|
public void SearchAsync( Geometry inputGeometry, Action<IList<S57FeatureObject>> resultCallback ) |
The SearchAsync operation takes a spatial geometry object (typically a MapPoint, Polyline, Polygon or Envelope) and returns a collection of S57FeatureObjects which intersect that geometry and/or the provided. Consider alternatively using the overloaded SearchAsync methods which take a buffer distance as a Double, and a S57 object name (acronym) as a String. To perform a search in screen coordinates you should use the HitTestAsync(Point,Int32,Action<IList<S57FeatureObject>>,Int32) or HitTestAsync(Rect,Int32,Action<IList<S57FeatureObject>>) methods.
Parameters
- inputGeometry
- The input ESRI.ArcGIS.Client.Geometry.
- resultCallback
- Action delegate called when the operation completes. Contains a collection of S57FeatureObject.
Exception | Description |
---|---|
System.ArgumentNullException | Input geometry must be specified. Use ESRI.ArcGIS.Client.Layer.FullExtent property if necessary. |
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8
Reference
HydrographicS57Layer ClassHydrographicS57Layer Members
Overload List
SearchAsync(Geometry,Double,Action<IList<S57FeatureObject>>) Method
SearchAsync(Geometry,Double,String,Action<IList<S57FeatureObject>>) Method
HitTestAsync(Point,Int32,Action<IList<S57FeatureObject>>,Int32) Method
HitTestAsync(Rect,Int32,Action<IList<S57FeatureObject>>) Method